package app.caihan.wanandroid.base

import app.caihan.wanandroid.model.bean.User

/**
 *
 *
 * @author Seven-C
 * @date 2020/8/24
 */
object AppInfo {

    var userInfo: User? = null
        set(value) {
            isLogin = if (value != null) {
                value.id != 0
            } else {
                false
            }
        }

    private var isLogin: Boolean = false

    fun isLogin():Boolean{
        return isLogin
    }

}